﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core.Validation;
using MvcEngine.Core.Base;

namespace MvcEngine.Core.Common
{
    public class Log
    {
        public Guid Id { get; set; }

        public Guid? SiteId { get; set; }

        [RequiredFieldValidator("$RequiredValidator")]
        [LengthValidator("$LengthValidator", 256)]
        public string Type { get; set; }

        [RequiredFieldValidator("$RequiredValidator")]
        public string Message { get; set; }

        public string Exception { get; set; }

        public Guid? CreatedBy { get; set; }

        public DateTime CreatedDate { get; set; }
    }
}
